<!--
 * @Author: pengmingming
 * @Date: 2020-12-25 14:29:57
 * @LastEditors: pengmingming
 * @LastEditTime: 2020-12-26 09:36:43
 * @Description: 
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            display: inline-block;
            margin-right: 20px;
            width: 300px;
            height: 200px;
            background: linear-gradient(#fb3 50%, #58a 50%);
        }
        .box2 {
            background-size: 100% 30px;
        }
        .box3 {
            background: linear-gradient(#fb3 30%, #58a 30%);
            background-size: 100% 30px;
        }
        .box4 {
            background: linear-gradient(#fb3 30%, #58a 0, #58a 69% yellowgreen 0);
            background-size: 100% 45px;
        }
        .box5 {
            background: linear-gradient(to right, #fb3 50%, #58a 50%);
            background-size: 30px 100%;
        }
        .box6 {
            background: linear-gradient(45deg, #fb3 25%, #58a 0, #58a 50%, #fb3 0, #fb3 75%, #58a 0);
            background-size: 42px 42 px;
        }
    </style>
</head>
<body>
    <div class="box"></div>
    <div class="box box2"></div>
    <div class="box box3"></div>
    <div class="box box4">多种颜色条纹</div>
    <div class="box box5">垂直颜色条纹</div>
    <div class="box box6">斜向条纹</div>
</body>
</html>
